package com.jy.api.payReq;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CancelRequest  extends TransBaseRequest{
    @JSONField(name = "service")
    private String service = "pay.qrcode.cancel";
    @JSONField(name = "pay_type")
    private String payType;
    @JSONField(name = "out_trade_no")
    private String outTradeNo;
    @JSONField(name = "ori_out_trade_no")
    private String oriOutTradeNo;
    @JSONField(name = "total_fee")
    private String totalFee;
    @JSONField(name = "mch_create_ip")
    private String mchCreateIp;

    @JSONField(name = "longitude")
    private String longitude;
    @JSONField(name = "latitude")
    private String latitude;

    public CancelRequest(String outTradeNo, String amount, String id) {
       this.outTradeNo=outTradeNo;
       this.totalFee=amount;
       this.oriOutTradeNo=id;
    }
}
